package com.hk.aefz.web;


import com.hk.aefz.po.Classify;
import com.hk.aefz.service.ClassifyService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 网站分类表 前端控制器
 * </p>
 *
 * @author 阿尔法哲
 * @since 2020-07-25
 */
@RestController
@RequestMapping("/classify")
public class ClassifyController {

    @Autowired
    private ClassifyService classifyService;

    @ApiOperation("查询所有网站分类")
    @PostMapping(path = "/select-list")
    public List<Classify> selectList() {
        List<Classify> classifies = classifyService.list();
        return classifies;
    }


}

